const Router = require('koa-router');
const router = new Router();
const tool = require('../../tools/tool')
const {db, QueryTypes} = require("../../models/db");

router.post('/deliver/carList', async ctx => {
    let tenantId = ctx.user.tenantId;
    let list = await db.query(`select * from cars where tenantId=${tenantId} and isDel=0 `, {type: QueryTypes.SELECT})
    return ctx.suc('', list);
})

module.exports = router;
